<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <title>转化Markdown</title>
    <script type="text/javascript" src="../internal.js"></script>
    <link rel="stylesheet" type="text/css" href="markdown.css">
</head>
<body>
<div class="wrapper">
    <div class="transformBtn">
        <button class="my-button" id="J_transformBtn">转换</button>
    </div>
    <div class="transformContent">
        <div class="beforeContent">
            <h3 class="h3">转换前内容</h3>
            <div class="content" id="beforeContent"></div>
        </div>
        <div class="afterContent">
            <h3 class="h3">转换后内容</h3>
            <div class="content" id="afterContent"></div>
        </div>
    </div>
</div>
<script type="text/javascript" src="markdown.js"></script>
<script src="https://unpkg.com/turndown/dist/turndown.js"></script>
<script src="https://unpkg.com/turndown-plugin-gfm/dist/turndown-plugin-gfm.js"></script>
<script src="showdown.js"></script>
<script type="text/javascript">
    var Markdown = new MarkdownConvert
    dialog.onok = function () {
        Markdown.exec()
    }
</script>
</body>
</html>